<template>
    <DoubleMemorial @back-to-list="handleBackToList" :memorialId="memorialId"/>
</template>

<script setup lang="ts">
import DoubleMemorial from '@/components/memorialManagePages/createMemorial.vue'
import { useRouter } from 'vue-router'
import { useRoute } from 'vue-router'
import { ref } from 'vue'

const router = useRouter()
const route = useRoute()
const memorialId = ref()

const handleBackToList = () => {
    router.push('/memorialManage/userInfo')
}
onMounted(() => {
    memorialId.value = route.query.memorialId as string
})
</script>